<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$this->sys_name?><?=$this->title?" - ".$this->title:""?></title>

<link href="/styles/home/red.css" rel="stylesheet">
<link href="/styles/css/index.css?11" rel="stylesheet">
<link href="/styles/css/nav.css?2" rel="stylesheet">
<link rel="stylesheet" href="/styles/jquery-ui-1.12.1.custom/jquery-ui.min.css?1" />
<!--alert style-->
<link href="/styles/css/jquery.my-message.1.1.css" rel="stylesheet" />

<script src="/scripts/jquery-1.12.4.min.js?2"></script>
<script src="/styles/jquery-ui-1.12.1.custom/jquery-ui.min.js?1"></script>
<script src="/styles/jquery-ui-1.12.1.custom/lang-cn.js"></script>
<script src="/styles/js/nav.js"></script>
<?php if($this->call_editor):?>
<script type="text/javascript" charset="utf-8" src="/scripts/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/scripts/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="/scripts/ueditor/lang/zh-cn/zh-cn.js"></script>
<?php endif;?>
<script src="/scripts/jquery.icheck.min.js"></script>
<script type="text/javascript">
$(function(){

	$("dl").hide();
	
	$("li.mainmenu").hover(function(){
		$(this).find("dl").stop(true,true);
		$(this).find("dl").slideDown();
	},function(){
		$(this).find("dl").stop(true,true);
		$(this).find("dl").slideUp();
	});
	
});
</script>

</head>

<body>
<!--nav-->
<div class="top">
	<div class="topn"><span><a href="/others/profile"><?=$_SESSION['identity']['realname']?></a>&nbsp;&nbsp;&nbsp; <a href="/login/logout">退出</a></span><font><?=$this->sys_name?></font></div>
</div>
<div id="cssmenu">
	<ul>
		<?=$this->main_menu?>
	</ul>
</div>
<!--nav over-->
<?php echo $this->layout()->content; ?>

<?php if('maozhuaadmin' == $_SESSION['identity']['username']):?>
<script type="text/javascript" src="http://cdn-hangzhou.goeasy.io/goeasy.js"></script>
<script src="/styles/js/jquery.my-message.1.1.js"></script>
<script type="text/javascript">
var message_alert = new MyMessage.message({
		/*默认参数，下面为默认项*/
		iconFontSize: "20px", //图标大小,默认为20px
		messageFontSize: "12px", //信息字体大小,默认为12px
		showTime: 3000, //消失时间,默认为3000
		align: "right", //显示的位置类型center,right,left
		positions: { //放置信息距离周边的距离,默认为10px
//			top: "10px",
			bottom: "10px",
			right: "10px",
//			left: "10px"
		},
		message: "这是一条消息", //消息内容,默认为"这是一条消息"
		type: "normal", //消息的类型，还有success,error,warning等，默认为normal
});	
	
var goEasy = new GoEasy({
appkey: 'BS-87e1e89316f04fe6b63bf5abcb3a663a'
});

goEasy.subscribe({
	channel:'<?=sha1("maozhuaAdmin")?>',
	onMessage: function(message){
		message_alert.setting("showTime", "20000");
		message_alert.add(message.content);
//		alert(message.content);
	}
});
</script>
<?php endif;?>

</body>
</html>